package com.hongdee.crm.question.service;


import com.hongdee.crm.question.entity.TCrmSurveryQuestion;

import java.util.Map;

/**
 * @Name: 问卷管理
 * @Author: Liu XiaoLong
 * @Date: 2017/10/13 10:25
 * @Remark:
 */
public interface ITCrmQuestionService {
    //新增、更新
    public TCrmSurveryQuestion saveOrUpdate(String uid,TCrmSurveryQuestion tCrmSurveryQuestion) throws Exception;
    //查询
    public Map page(String start,String limit,String questionName) throws Exception;
    //启用
    public Map start(String id) throws Exception;
    // 停用
    public Map stop(String id) throws  Exception;
    //获取问题树
    public  Map questionTree(String companyId) throws Exception;
    // 获取问卷预览
    public Map getQuestionPage(String uid,String questionId) throws Exception;
    // 删除问卷
    public Map questionDelete(String uid,String questionId) throws Exception;
    // 详情查询
    public Map info(String uid,String id) throws Exception;
}
